package com.ynu.yx.chatroleai.model;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("user_preferences")
public class UserPreference {
    @TableId(type = IdType.AUTO)
    private Long id;

    @TableField(value = "user_preference_id")
    private Long userPreferenceId; //  用户偏好信息的ID

    @TableField(value = "user_id")
    private Long userId; //  用户ID

    @TableField(value = "preference_key")
    private String preferenceKey;  //  偏好信息键

    @TableField(value = "preference_value")
    private String preferenceValue;  //  偏好信息值

    @TableField(value = "updated_at", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updatedAt;

    @TableLogic
    @TableField(value = "is_deleted")
    private Integer isDeleted;
}
